/*
 * @Author: C.
 * @Date: 2023-12-01 14:43:19
 */
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import vueJsx from '@vitejs/plugin-vue-jsx'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
    vueJsx({
      // options are passed on to @vue/babel-plugin-jsx
    }),
  ],
  base: './',

  //vite.config.js
  css: {
    preprocessorOptions: {
      //define global scss variable
      scss: {
        // eslint-disable-next-line quotes
        additionalData: "@import '@/styles/index.scss';",
      },
    },
  },
})
